<?php

namespace app\admin\validate\shop\goods;

use think\Validate;

class SpecTemplate extends Validate
{
    protected $failException = true;

    /**
     * 验证规则
     */
    protected $rule = [
        'name' => 'require',
    ];

    /**
     * 提示消息
     */
    protected $message = [
        'name.require' => '规格名称不能为空',
    ];

    /**
     * 验证场景
     */
    protected $scene = [
        'add'  => [
            'name'
        ],
        'edit' => [
            'name'
        ],
    ];

}
